//
//  WJAlertView.h
//  ChiShaNe
//
//  Created by 王军 on 16/3/25.
//  Copyright © 2016年 王军. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "RIButtonItem.h"
#import <UIKit/UIKit.h>

typedef enum {
    RIButtonItemType_Cancel         = 1,
    RIButtonItemType_Destructive       ,
    RIButtonItemType_Other
}RIButtonItemType;
typedef enum {
    BOAlertControllerType_AlertView    = 1,
    BOAlertControllerType_ActionSheet
}BOAlertControllerType;
#define isIOS8  ([[[UIDevice currentDevice]systemVersion]floatValue]>=8)



@interface WJAlertView : NSObject

- (id)initWithTitle:(NSString *)title message:(NSString *)message viewController:(UIViewController *)inViewController;

- (void)addButton:(RIButtonItem *)button type:(RIButtonItemType)itemType;

- (void)showInView:(UIView *)view;

- (void)show;

@end
